<?php $this->pageTitle = 'Login'; /* @var $this Controller */ ?>
<div class="row">
	<div class="span5 offset35">
		<div class="well" id="login">
			<legend><?php echo strtoupper(Yii::app()->name); ?> - Login</legend>
			<?php
			$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
				'id' => 'login-form',
				'enableClientValidation' => true,
			)); /* @var $form TbActiveForm */
			?>
			<?php echo $form->textFieldRow($model, 'username', array('placeholder' => 'UserName')); ?>
			<?php echo $form->passwordFieldRow($model, 'password', array('placeholder' => 'Password')); ?>
			<?php if ($model->getIsNeedCaptcha()) echo $form->captchaRow($model, 'verifyCode'); ?>
			<?php echo $form->checkBoxRow($model, 'rememberMe'); ?>
			<?php
			$this->widget('bootstrap.widgets.TbButton', array(
				'type' => 'info',
				'label' => 'Login',
				'block' => true,
				'buttonType' => 'submit',
			));
			?>
			<?php $this->endWidget(); ?>
		</div>
		<div class="text-center muted">
			&copy; 2011-<?php echo date('Y'); ?> 
			<?php echo Yii::app()->name; ?>/<?php echo Yii::app()->params['version']; ?>
			<br />
			Powered by <a href="http://www.xunsearch.com" target="_blank"><img id="footer-logo" src="<?php echo Yii::app()->request->baseUrl; ?>/img/logo.png" alt="xunsearch" height="32" width="48" /></a>
		</div>
	</div>
</div>
<?php
$this->widget('ext.iealert.IEAlertWidget', array(
	'support' => 'ie7',
	'title' => '知道吗，你现在所用的浏览器漏洞百出！',
	'text' => '为能在本站获得更好体验，我们强烈建议您立即升级浏览器，点击下面的“立即升级”进入下载页面。',
	'upgradeTitle' => '立即升级',
));
?>
